﻿
using Microsoft.Kinect;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
using CommonObjects;
using SketlonBackOffice;

namespace FileManager
{
    public static class XMLReader
    {
        public static List<SketlonFrame> ReadXMLStream()//read XML with deserialization
        {
            List<SketlonFrame> framList = new List<SketlonFrame>();
            string path = "data.xml";
            XmlSerializer serializer = new XmlSerializer(typeof(List<SketlonFrame>));
            System.IO.StreamReader readerxml = new System.IO.StreamReader(path);
            framList = (List<SketlonFrame>)serializer.Deserialize(readerxml);
            readerxml.Close();
            return framList;
        }
    }
}
